'use strict';

module.exports = app => {
  const mongoose = app.mongoose;
  const Schema = mongoose.Schema;

  const goodsSchema = new Schema({
    productId: String,
    productName: String,
    salePrice: Number,
    checked: String,
    productNum: Number,
    productImage: String,
  });
  return mongoose.model('Goods', goodsSchema);
};
